/**
 * 
 */
package org.ucn.dmaa0914.gruppe6;

/**
 * @author Kim
 *
 */
public class IdObject {
	private static int idCounter = 1;
	private int id;

	public IdObject()
	{
		id = idCounter++;
	}
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
		
		if( idCounter <= id )
			idCounter = id+1;
	}
}
